package com.lagou.service.remote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-code", path = "/code")
public interface CodeService {

    /**
     * 校验验证码
     *
     * @param email
     * @param code
     * @return 0-正确 1-错误 2-超时
     */
    @RequestMapping("/validate/{email}/{code}")
    int validateCode(@PathVariable("email") String email, @PathVariable("code") String code);

}
